package com.ly.honor.util;

/**
 * @Author LiYang
 * @Date 2022/11/16 14:15
 * @Version 1.0
 *  * 返回结果码
 */


public enum ResultEnum {
    SUCCESS(20000,"成功"),
    FAIL(20001,"失败"),
    GLOBAL_EXCEPTION(20002,"全局异常处理"),
    HONOR_EXCEPTION(20003,"执行HonorException异常处理"),
    OBJECT_NOT_NULL(20004,"请求的对象不能为空"),
    MESSAGE_INVALID(20005,"给出的信息无效"),
    CAPTCHA_ERROR(20006,"验证码错误"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
